public class Date{

static int month;
static int day;
static int min;
static int sec;
static int hour;

public void addDate(int months, int days, int hours,int mins, int secs){
sec+=secs;
day+=days;
min+=mins;
month+=months;
hour+=hours;
	if(sec>=60){ 
		sec-=60;
		min++;
	}
	if(min>=60){
		min-=60;
		hour++;
	}
	if(hour>=24){
		hour-=24;
		day++;
	}
	if(day>=30 &&(month==9||month==11)){
		day-=30;
		month++;	
	}
	else if(day>=31&&(month==8||month==10)){
		day-=30;
		month++;
	
	}
}

public int getMonth(){
return month;
}

public int getDay(){
return day;
}


public int gethour(){
return hour;
}

public int getMin(){
return min;
}

public int getsec(){
return sec;
}

public String toString(){
return Integer.toString(month)+"/"+Integer.toString(day)+"/"+Integer.toString(9);
}

public static void main (String args[]){
	Date 	date =new Date();
  	date.addDate(8,22,0,0,0); 
  	date.addDate(0, 0, 24, 0,60);
    System.out.print(date.toString());
}

}